    // 1.构造函数
    function TextCircle(option) {
        this._init(option);
    }
    // 2.设置原型对象
    TextCircle.prototype = {
        constructor: TextCircle,
        _init: function (option) {
            option = option || {};
            // 圆点
            this.circleX = option.circleX || 0;
            this.circleY = option.circleY || 0;
            // 半径
            this.innerRadius = option.innerRadius || 0;
            this.outerRadius = option.outerRadius || 0;
            // 内圆的颜色
            this.innerFill = option.innerFill || 'black';
            // 外圆的颜色
            this.outerColor = option.outerColor || 'black';
            // 文字
            this.text = option.text || '不详';
            // 文字的颜色
            this.textColor = option.textColor || 'white';
        },

        // 绘制
        render : function (layerOrGroup) {
            // 1.创建组
            this.group = new Konva.Group({
               x : this.circleX, y : this.circleY
            });
            layerOrGroup.add(this.group);
            //2.创建内圆
            var inner_circle = new Konva.Circle({
                radius: this.innerRadius,
                fill: this.innerFill,
            });
            this.group.add(inner_circle);
            // 3.创建圆环
            var outer_circle_ring = new Konva.Ring({
                innerRadius: this.innerRadius,
                outerRadius: this.outerRadius,
                fill: this.outerColor
            });
            this.group.add(outer_circle_ring);
            // 4.创建文字
            var circleText = new Konva.Text({
                x: -this.innerRadius,
                y: -8,
                width : 2 * this.innerRadius,
                text: this.text,
                fontSize: 18,
                fill: this.textColor,
                align :"center"
            });
            this.group.add(circleText);
        }

    }
